//
// Created by heqian on 19-4-7.
//

#ifndef GNGROK_LINUX_WINDOWMAIN_H
#define GNGROK_LINUX_WINDOWMAIN_H

#include <gtkmm.h>
#include <string>
#include "../ngrok_C/NgrokConfig.hpp"

using namespace std;
using namespace Gtk;

class WindowMain : public ApplicationWindow {

public:
    WindowMain();

protected:
    NgrokConfig mConfig;
    Glib::RefPtr<Box> mBoxMain;

    Glib::RefPtr<Entry> mEntryUser;
    Glib::RefPtr<Entry> mEntryPass;
    Glib::RefPtr<ComboBoxText> mComboxHttp;
    Glib::RefPtr<Entry> mEntryHttpAdd;
    Glib::RefPtr<Entry> mEntryTcpPort;
    Glib::RefPtr<ComboBoxText> mComboxHttps;
    Glib::RefPtr<Entry> mEntryHttpsAdd;
    Glib::RefPtr<Entry> mEntryHttpsPort;
    Glib::RefPtr<ComboBoxText> mComboxTcp;
    Glib::RefPtr<Entry> mEntryTcpAdd;
    Glib::RefPtr<Entry> mEntryHttpPort;

    void on_exit_clicked();

    void on_save_clicked();

    void on_run_clicked();

    void save();




};


#endif //GNGROK_LINUX_WINDOWMAIN_H
